package com.example.yin.dao;

import com.example.yin.domain.Admin;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminMapper {

    /*管理员模块，包括登录模块和处理用户信息模块*/

    int deleteByPrimaryKey(Integer id);
    int insert(Admin record);
    int insertSelective(Admin record);
    Admin selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(Admin record);
    int updateByPrimaryKey(Admin record);


    int verifyPassword(String username, String password);

    int updatePassword(Admin admin);
}
